package com.wonderful.mall.order.listener;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@RestController
public class OrderPayListener {

    @PostMapping("/payed/notify")
    public String handlePay(HttpServletRequest request){
        Map<String, String[]> parameterMap = request.getParameterMap();
        System.out.println("支付宝的通知数据"+parameterMap);
        return "success";
    }
}
